home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT TEMP Options.xpl < prev    next >
Text File  |  2001-09-01  |  2KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="4"
  3. "DATA 1"="Folders (*.*)|*.*"
  4. "COUNT"="2"
  5. "UIPATH 1"="System\File System\Folders\Temporary"
  6. "NAME"="Windows NT/2K/XP TEMP Folder"
  7. "OSVERSION"="0101011"
  8. "VERSION"="1.14"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="TEMP Folder"
  11. "TEXT 2"="TMP Folder"
  12. "DESCRIPTION 1"="Changing these items will allow you to determine where TEMP/TMP files [temporary files] are stored."
  13. "DESCRIPTION 2"="This value may be set to any drive on your system, however, it is recommended that you use only hard disk drives rather than removable ones such as Zip, Jaz, floppy, CD and so on."
  14. "DESCRIPTION 3"="Only use a network drive for this option if the hosting [server of the network drive] is always on.  Generally, the files in the TEMP/TMP folder may be deleted safely after 24 hours of creation, and once all open applications have been closed."
  15. "DESCRIPTION 4"="Usually both the TMP and TEMP values are set to the same folder, but this is not required.  Some programs use TMP and some use TEMP, which is why two values exist.  The Windows 2000 default setting for both items is: %USERPROFILE%\Local Settings\Temp"
  16. "AUTHOR"="Xteq Systems (CptSiskoX)"
  17. "CONTACTURL"="http://www.xteq.com"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20. "COMMENT 2"=" "
  21.  
  22.  
  23. sPC="HKEY_CURRENT_USER\Environment\"
  24. sV1="HKEY_CURRENT_USER\Environment\Temp"
  25. sV2="HKEY_CURRENT_USER\Environment\TMP"
  26.  
  27.  
  28. Sub Plugin_Initialize 
  29.  If RegPathExists(sPC) then
  30.     s=RegReadValue(sV1)
  31.     SetUiElement 1,s
  32.  
  33.     s=RegReadValue(sV2)
  34.     SetUiElement 2,s
  35.  else
  36.     Call Disable()
  37.  end if
  38. End Sub
  39.  
  40. Sub Plugin_CheckData(ElementIndex)
  41. End Sub
  42.  
  43. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  44.  s=GetUIElement(1)
  45.  Call RegWriteValue(sV1,s,4)
  46.  
  47.  s=GetUIElement(2)
  48.  Call RegWriteValue(sV2,s,4)
  49.  
  50. End Sub
  51.  
  52. Sub Plugin_Terminate 
  53. End Sub
  54.  
  55.  
  56.  
  57.